export default function(initialState){
    //获取当前登录的用户的角色
    let access = initialState?.currentUser?.access;
    return {
        rootCan:access=== 'root',//只有root用户有权限
        adminCan:['root','admin'].includes(access),//管理员和root有权限
        memberCan:['root','admin','member'].includes(access)//root和管理员和普通成员有权限
    }
}